| 知乎专栏 |
Handler handler=new Handler(Looper.getMainLooper());
handler.post(new Runnable(){
public void run(){
Toast.makeText(getApplicationContext() ,"显示Toast在屏幕上!",Toast.LENGTH_LONG).show();
}
});
Handler handler = new Handler(Looper.getMainLooper());
handler.post(() -> {
Toast.makeText(getApplicationContext(), "显示Toast在屏幕上!", Toast.LENGTH_LONG).show();
notify1();
});